cordova.define("com.waiqin365.h5.util.wqutil", function(require, exports,
		module) {

	module.exports = new WqUtil();

	var exec = require('cordova/exec');
	var utils = require('cordova/utils');

	function WqUtil() {

	}

	WqUtil.prototype.wqOpenUrl = function(successCallback, errorCallBack, json) {
		exec(successCallback, errorCallBack, "WqOpenUrl", "wqOpenUrl", [json]);
	}
	
	WqUtil.prototype.wqOpenSearchUrl = function(successCallback, json) {
		exec(successCallback, null, "WqOpenSearchUrl", "wqOpenSearchUrl",
				[json]);
	}

	WqUtil.prototype.wqClosePage = function(json) {
		exec(null, null, "WqClosePage", "wqClosePage", [json]);
	}

	WqUtil.prototype.wqInputMethod = function() {
		exec(null, null, "WqOpenInputMethod", "wqOpenInputMethod", []);
	}
	WqUtil.prototype.wqCloseInputMethod = function() {
		exec(null, null, "WqCloseInputMethod", "wqCloseInputMethod", []);
	}

	WqUtil.prototype.wqObserverHelper = function(json) {
		exec(null, null, "WqObserverHelper", "wqObserverHelper", [json]);
	}
	WqUtil.prototype.wqOpenCustomerPager = function(json) {
    		exec(null, null, "WqOpenCustomerPage", "wqOpenCustomerPage", [json]);
    }
});
